Skip to content

Support server-streaming in transcoding#284

Draft
zZHorizonZz wants to merge 1 commit into
eclipse-vertx:mainfrom
zZHorizonZz:transcoding-streaming
Draft

Support server-streaming in transcoding#284
zZHorizonZz wants to merge 1 commit into
eclipse-vertx:mainfrom
zZHorizonZz:transcoding-streaming

Conversation

@zZHorizonZz

Copy link
Copy Markdown
Member

Motivation:

  • Extend JSON transcoding support for server-streaming RPCs to enhance compatibility with streaming APIs.
  • Improve response flexibility with support for JSON Array, NDJSON, and SSE formats based on the Accept header.

Changes:

  • Added streaming and StreamFormat fields to TranscodingGrpcOutboundStream for response format negotiation.
  • Implemented JSON Array, NDJSON, and SSE response formatting for server-streaming.
  • Updated MessageWeaver to handle JsonObject outputs for request/response weaving.
  • Modified tests to validate new streaming response formats and HTTP transcoding logic.
  • Refactored templates (grpc-service.mustache) and tests to support method-level isManyOutput configurations.

… formatting.

Motivation:

- Extend JSON transcoding support for server-streaming RPCs to enhance compatibility with streaming APIs.
- Improve response flexibility with support for JSON Array, NDJSON, and SSE formats based on the `Accept` header.

Changes:

- Added `streaming` and `StreamFormat` fields to `TranscodingGrpcOutboundStream` for response format negotiation.
- Implemented JSON Array, NDJSON, and SSE response formatting for server-streaming.
- Updated `MessageWeaver` to handle `JsonObject` outputs for request/response weaving.
- Modified tests to validate new streaming response formats and HTTP transcoding logic.
- Refactored templates (`grpc-service.mustache`) and tests to support method-level `isManyOutput` configurations.

Signed-off-by: Daniel Fiala <danfiala23@gmail.com>
@zZHorizonZz zZHorizonZz changed the title Enable JSON transcoding for server-streaming RPCs and refine response formatting Enable JSON transcoding for server-streaming RPCs Jun 30, 2026
@zZHorizonZz

Copy link
Copy Markdown
Member Author

This PR depends on #281

@zZHorizonZz zZHorizonZz changed the title Enable JSON transcoding for server-streaming RPCs Support server-streaming in transcoding Jul 1, 2026
@zZHorizonZz zZHorizonZz added this to the 5.2.0 milestone Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant